package com.example.springsecurity.demo.service;

import org.springframework.security.core.Authentication;
import javax.servlet.http.HttpServletRequest;

public interface MyService {
    // 返回值是boolean, 函数名称自定义
    // request对象是为了拿主体和权限, authentication就是权限
    boolean hasPermission(HttpServletRequest request, Authentication authentication);
}